<div class="wrap">    
    <div id="icon-upload" class="icon32"><br /></div>
    <h2>Přidat vysílací rámec <a href="{link target='self:addFrame'}" class="add-new-h2">Přidat vysílací rámec</a> </h2>
    {include file="messages.html"}
    <form name="addlink" id="addlink" method="post" action="{link target='self:addFrame'}">
        <input type="hidden" name="action" value="add">
        <div id="poststuff" class="metabox-holder has-right-sidebar">
            <div id="side-info-column" class="inner-sidebar">
                <div id="side-sortables" class="meta-box-sortables ui-sortable"><div id="linksubmitdiv" class="postbox ">
                        <h3 class="hndle"><span>Uložit</span></h3>
                        <div class="inside">
                            <div class="submitbox" id="submitlink">
<!--                                <div id="minor-publishing">
                                    <div id="minor-publishing-actions">
                                        <div id="preview-action">
                                        </div>
                                        <div class="clear"></div>
                                    </div>

                                    <div id="misc-publishing-actions">
                                        <div class="misc-pub-section misc-pub-section-last">
                                            ...
                                        </div>
                                    </div>
                                </div>-->
                                <div id="major-publishing-actions">
                                    <div id="delete-action">
                                        <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="Přidat rámec">
                                    </div>
                                    <div id="publishing-action">
                                        
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                </div>                
            </div>
            <div id="post-body">
                <div id="post-body-content">
                    <div id="namediv" class="stuffbox">
                        <h3><label for="link_name">Název</label></h3>
                        <div class="inside">
                            <input type="text" name="frame[name]" size="30" tabindex="1" value="{$frame.name|escape}" id="link_name" />
                            <p>Příklad: První vysílací rámec</p>
                        </div>
                    </div>
                    <div id="namediv" class="stuffbox">
                        <h3><label for="link_name">Stránka</label></h3>
                        <div class="inside">
                            {html_options name="frame[layoutId]" options=$layouts selected=$frame.layoutId}
                        </div>
                    </div>
                    <div class="stuffbox">
                        <h3><label for="link_name">Platnost</label></h3>
                        <div class="inside"> 
                            <table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
                                <tbody>
                                  <tr class="form-field">
                                        <th valign="top" scope="row"><label for="frame[validFrom]">Platný od (yyyy-mm-dd hh:mm:ss)</label></th>
                                        <td><input type="text" name="frame[validFrom]" size="30" tabindex="1" value="{$frame.validFrom|escape}" /> </td>
                                    </tr>
                                    <tr class="form-field">
                                        <th valign="top" scope="row"><label for="frame[validTo]">Platný do (yyyy-mm-dd hh:mm:ss)</label></th>
                                        <td><input type="text" name="frame[validTo]" size="30" tabindex="1" value="{$frame.validTo|escape}" /></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>                        
                    </div>
<!--                    <div>
                        <div id="linkcategorydiv" class="postbox">
                            <h3><span>Rozložení</span></h3>
                            <div class="inside">
                                <ul class="category-tabs">
                                    <li class="tabs"><strong>Všechna rozložení</strong></li>
                                </ul>
                                <div class="tabs-panel">
                                    <ul class="list:category categorychecklist form-no-clear">
                                        {foreach $layouts as $layout}
                                        <li>
                                            <label for="in-layout-{$layout.ID|escape}" class="selectit">                                                
                                                <input value="{$layout.ID|escape}" type="radio" id="in-layout-{$layout.ID|escape}" name="frame[layoutId]"{if $layout.ID == $frame.layoutId} checked="checked"{/if} /> {$layout.post_title|escape}                                                
                                            </label>
                                        </li>	
                                        {/foreach}
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>-->
                </div>
            </div>            
        </div>        
    </form>
</div>
